import {legacy_createStore as createStore,applyMiddleware,combineReducers} from 'redux'
import shopcartReducer from './reducers/shopcartReducer'
import countReducer from './reducers/countReducer'
import {composeWithDevTools} from 'redux-devtools-extension'
import logger from 'redux-logger'
import thunk from 'redux-thunk'

const bigReducers=combineReducers({
    counter:countReducer,
    shopcart:shopcartReducer
})
const store=createStore(bigReducers,composeWithDevTools(applyMiddleware(logger,thunk)))
export default store